package com.xmkj.bearuser.my.adapter;

import android.content.Context;

import com.common.Entity.ChongZhiEntity;
import com.common.widget.recyclerview.refresh.adapter.CommonAdapter;
import com.common.widget.recyclerview.refresh.adapter.ViewHolder;
import com.xmkj.bearuser.R;

import java.util.List;

public class ChongZhiRecordAdapter extends CommonAdapter<ChongZhiEntity.ListsEntity> {
    public ChongZhiRecordAdapter(Context context, List<ChongZhiEntity.ListsEntity> data) {
        super(context, data);
    }

    @Override
    protected void convert(ViewHolder holder, ChongZhiEntity.ListsEntity item, int position) {
        holder.setText(R.id.tv_content,item.title);
        holder.setText(R.id.tv_date,item.date);
        holder.setText(R.id.tv_num, item.money);
    }

    @Override
    protected int getItemViewLayoutId(int position, ChongZhiEntity.ListsEntity item) {
        return R.layout.item_my_jifen;
    }
}
